/*
package com.lhsy.djcloud.task;

import cn.hutool.core.date.DateUtil;
import cn.hutool.json.JSONUtil;
import com.lhsy.djcloud.common.WebSocketConsts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;


*/
/**
 * @author kate
 *//*

@Component
@Slf4j
public class MessageTask {
    @Autowired
    private SimpMessagingTemplate wsTemplate;

    */
/**
     * 按照标准时间来算，每隔 2s 执行一次
     *//*

    @Scheduled(cron = "0/2 * * * * ?")
    public void websocket() throws Exception {
        wsTemplate.convertAndSend(WebSocketConsts.PUSH_SERVER, JSONUtil.toJsonStr(""));
        log.info("【推送消息】执行结束：{}", DateUtil.formatDateTime(new Date()));
    }
}
*/
